package com.yonyou.pmclouds.plantemplate.processor;

import com.yonyou.pmclouds.basecom.bp.processor.SingleProcessor;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.plantemplate.entity.ScheduleTemplateVO;
import com.yonyou.pmclouds.plantemplate.rmiitf.IScheduleTemplateItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ScheduleTemplateDeleteAfterProcessor implements SingleProcessor<ScheduleTemplateVO> {

    @Autowired
    private IScheduleTemplateItemService itemService;

    @Override
    public void process(ScheduleTemplateVO vo, ScheduleTemplateVO orig) throws BusinessException {
        itemService.delete(vo);
    }
}
